# -*- coding: utf-8 -*-  
"""  
@author   : Mengnf  
@github   : https://gitee.com/mengnf  
@software : PyCharm   
@file     : urls.py  
@create   : 2024-11-05 9:29  
"""
from django.urls import path, include

from drf_admin_base.utils import routers
from monitor.views import users, service, error, ip, crud

router = routers.AdminRouter()
router.register(r'ip', ip.IpBlackListViewSet, basename="ip")  # ip黑名单管理
urlpatterns = [
    path('users/', users.OnlineUsersListAPIView.as_view()),  # 在线用户监控
    path('service/', service.ServiceMonitorAPIView.as_view()),  # 服务监控
    path('error/', error.ErrorLogAPIView.as_view()),  # 错误日志监控
    path('crud/', crud.CRUDListAPIView.as_view()),  # CRUD变更记录
    path('', include(router.urls)),
]
